package com.example.demo.Bean;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class Team implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer groupId;

    private String courseId;

    private String name;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    public Team(){}

    public Team(String courseId, String name){
        this.courseId = courseId;
        this.name = name;
    }
}
